package com.tuling.core.plugin;

import java.util.HashMap;

/**
 * 这个需要加入到远程缓存
 * @author lenovo
 *
 */
public class PluginCacheUtil {
	private static HashMap< String, PluginInfo> pluginCache = new HashMap<>();
	
	public static void addPlugin(String pluginName,PluginInfo plugin){
		pluginCache.put(pluginName, plugin);
	}
	
	public static boolean isContainPlugin(String pluginName){
		return pluginCache.containsKey(pluginName);
	}
	
}
